<template>
    <div class="box" >
        <div class="header" style="width: 100%" >
            <div class="main">
                <div class="left">
                    <h3 style="border-bottom:2px solid lightgray">招募中心</h3>
                    <ul>
                        <li >
                            <el-link class="leftRecruit" @click="getResult" style="color: #d51423">
                                成为讲师
                            </el-link>
                        </li>
                        <hr style="margin: 0 10px"/>
                        <li>
                            <el-link class="leftRecruit" @click="$router.push('Re-result')" style="color: #d51423">
                                申请结果
                            </el-link>
                        </li>
                    </ul>
                </div>
                <div class="right">
                    <div class="t-button">
                        <router-view></router-view>
                    </div>
                </div>
            </div>
            <div class="footer"></div>
        </div>
    </div>
</template>

<script>
    export default {
        name: "re-teacher",
        created() {
            this.$router.push({name:'Re-toApply'})
        },
        methods:{
            getResult(){
                this.$router.push({name:'Re-toApply'})
            },
            goHome(){
                this.$router.push({path:'/'})
                window.location.reload()
            }
        }
    }
</script>

<style>
    body{
        width: 100%;
        margin: 0;
    }

    .box{
        width:100%;
        background-color: #F5F5F5;
    }
    .main{
        width: 1200px;
        margin: 30px auto 0;
        /*min-height: 1000px;*/
        padding: 0;
    }
    .left{
        float: left;
        margin-bottom:20px;
        background-color: white;
    }
    .left h3{
        width: 98px;
        line-height: 60px;
        margin: 0;
        padding: 0 35px;
        border-bottom: 1px solid #f2f2f2;
    }
    .left ul{
        list-style-type: none;
        margin: 0;
        padding: 0;
    }
    .leftRecruit {
        list-style-type: none;
        line-height: 40px;
        text-align: center;
    }
    .t-button{
        width: 912px;
        height: 350px;
        padding: 0 50px 50px;
        background-color: white;
        float: right;
    }
    .button a{
        font-size: 100%;
        width: 160px;
        line-height: 36px;
        color: #fff;
        background-color: #d51423;
        text-align: center;
        border-radius: 6px;
        position: relative;
        display: inline-block;
        margin-top: 10px;
        text-decoration:none
    }
</style>